package com.mt.demo.domain;

import com.mt.demo.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 投票记录对象 mt_vote_record
 * 
 * @author gary
 * @date 2025-08-11
 */
public class MtVoteRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long recordId;

    /** 投票ID */
    @Excel(name = "投票ID")
    private Long voteId;

    /** 问题ID */
    @Excel(name = "问题ID")
    private Long questionId;

    /** 选项ID */
    @Excel(name = "选项ID")
    private Long optionId;

    /** 用户ID（匿名时为NULL） */
    @Excel(name = "用户ID", readConverterExp = "匿=名时为NULL")
    private Long userId;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }

    public void setVoteId(Long voteId) 
    {
        this.voteId = voteId;
    }

    public Long getVoteId() 
    {
        return voteId;
    }

    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }

    public void setOptionId(Long optionId) 
    {
        this.optionId = optionId;
    }

    public Long getOptionId() 
    {
        return optionId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("voteId", getVoteId())
            .append("questionId", getQuestionId())
            .append("optionId", getOptionId())
            .append("userId", getUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
